<template>
  <BasicLayout title="订单状态">
    <TimeLine
      slot="content"
      :timelineData="timelineData"
      :autoPlay="autoPlay"
    />
  </BasicLayout>
</template>

<script>
import BasicLayout from "@/components/BasicLayout/index.vue";
import TimeLine from "@/components/TimeLine/index.vue";
import { timelineData } from "@/constants/orderStatus";
export default {
  components: {
    BasicLayout,
    TimeLine,
  },
  computed: {
    autoPlay() {
      if (this.$route.query.type === "person") return true;
      return false;
    },
  },
  data() {
    return {
      timelineData,
    };
  },
};
</script>

<style></style>
